home *** CD-ROM | disk | FTP | other *** search
/ Champak 145 / (Vol 145) Dec 21 2011.iso / Games / Debora.swf / scripts / frame_110 / DoAction.as
Encoding:
Text File  |  2011-12-21  |  821 b   |  45 lines

  1. function start_link()
  2. {
  3.    gotoAndPlay(111);
  4.    trace("ok");
  5. }
  6. function domain_link()
  7. {
  8.    getUrl("http://www.i-dressup.com", "_blank");
  9.    trace("ok");
  10. }
  11. function sound_click()
  12. {
  13.    btn_sound = new Sound(this.btn_mc2);
  14.    btn_sound.attachSound("click");
  15.    btn_sound.setVolume(50);
  16.    btn_sound.start(0,1);
  17. }
  18. stop();
  19. begin_btn.onRelease = function()
  20. {
  21.    start_link();
  22. };
  23. begin_btn.onRollOver = function()
  24. {
  25.    this.gotoAndStop(2);
  26.    sound_click();
  27. };
  28. begin_btn.onRollOut = begin_btn.onReleaseOutside = function()
  29. {
  30.    this.gotoAndStop(1);
  31. };
  32. domain_btn.onRelease = function()
  33. {
  34.    domain_link();
  35. };
  36. domain_btn.onRollOver = function()
  37. {
  38.    this.gotoAndStop(2);
  39.    sound_click();
  40. };
  41. domain_btn.onRollOut = domain_btn.onReleaseOutside = function()
  42. {
  43.    this.gotoAndStop(1);
  44. };
  45.